Simple_History\WP_REST_Events_Controller B

Total Complexity 78
Dependencies 11
Dependents 1
Total lines 1,134
Lines of code 781
Logical lines of code 220
Comment lines 216
Methods 19
Properties 1

Methods 19

Method Rating Maintainability Complexity Lines of code
prepare_item_for_response()
C
31 28 107
get_items()
A
38 8 71
get_collection_params()
A
32 1 149
get_item_schema()
A
35 2 110
validate_initiator_param()
S
50 7 29
register_routes()
S
37 1 107
create_item()
S
48 4 37
get_has_updates()
S
46 3 43
get_item_permissions_check()
S
53 4 25
stick_event()
S
56 3 19
unstick_event()
S
56 3 19
update_item_permissions_check()
S
58 3 17
sanitize_initiator_param()
S
67 3 8
get_single_event()
S
63 2 11
get_items_permissions_check()
S
64 2 10
__construct()
S
73 1 5
get_item()
S
70 1 6
get_collection_params_for_has_updates()
S
73 1 5
create_item_permissions_check()
S
80 1 3